package com.jspgou.core.manager;

import com.jspgou.cms.entity.Role;
import com.jspgou.core.entity.Admin;
import com.jspgou.core.entity.Website;
import java.util.Set;

public interface AdminMng{

    public Admin getByUserId(Long userId, Long webId);

    public Admin register(String username, String password, String email, String ip, Boolean disabled
    		, Set<String> perms, Website website,Set<Role> roles);

    public Admin findById(Long id);

    public abstract Admin save(Admin bean);

    public abstract Admin update(Admin bean);

    public abstract Admin deleteById(Long id);

    public abstract Admin[] deleteByIds(Long[] ids);
    
    //*添加方法，更具admin 的name获取admin对象
    public Admin getByName(String adminName);
}
